import Vue from "vue";
import Element from "./element";
import WlUi from "./wlui";
import "element-ui/lib/theme-chalk/index.css";

// 注册组件
[...Element.components, ...WlUi].forEach(i => Vue.use(i));

// 注册指令服务
Element.serve.forEach(i => Vue.use(i.directive));

// 注册挂载方法
Element.methods.forEach(i => (Vue.prototype[`$${i.name}`] = i));
